package mest.service.hws.impl;

import mest.Dto.hws.BomDto;
import mest.dao.hws.BomDtoDao;
import mest.service.hws.BomDtoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class BomDtoServiceImpl implements BomDtoService {

    @Resource
    private BomDtoDao bomDtoDao;

    @Override
    public BomDto selectByPrimaryKey(String theirDb,Integer id) {
        return bomDtoDao.selectByPrimaryKey(theirDb,id);
    }

    @Override
    public List<BomDto> selectPrimary(String theirDb, Integer limit, Integer page, String bomName) {
        return bomDtoDao.selectPrimary(theirDb,limit,page,bomName);
    }

    @Override
    public int selectPrimarycount(String theirDb,String bomName) {
        return bomDtoDao.selectPrimarycount(theirDb,bomName);
    }
}
